﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Apewer.AspNetBridge
{

    /// <summary></summary>
    public class JsonResult : HttpActionResult
    {

        /// <summary></summary>
        public JsonResult(object content)
        {
            var json = Json.From(content);
            var text = json == null ? "" : json.ToString();
            Bytes = text.Bytes();
            ContentType = "application/json";
        }

    }

}
